function output = fn_kappa_net(T,kappa)

kappa1 = kappa(1);
kappa2 = kappa(2);

if kappa2 == 0
    output = kappa1*T;
else
    output = kappa1/kappa2*(exp(kappa2*T)-1);
end

% output = kappa1*T + kappa2/2*T.^2;

end